package itheima05;

import java.util.ArrayList;
import java.util.List;

/*
    定义一个玩家类Player
    成员变量:
        List<Integer> list: 存储玩家拿到的牌的编号的List集合
        String playerName: 玩家的名字
 */
public class Player {
    private List<Integer> list = new ArrayList<>();
    private String playerName;

    public List<Integer> getList() {
        return list;
    }

    public void setList(List<Integer> list) {
        this.list = list;
    }

    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }
     //只需要录入名字，没有数组
    /*public Player(List<Integer> list, String playerName) {
        this.list = list;
        this.playerName = playerName;
    }*/

    public Player(String playerName) {
        this.playerName = playerName;
    }
}
